package com.cjl.damin.controller.v1;

import com.cjl.admin.dtos.AdminInfoDto;
import com.cjl.admin.dtos.AdminLoginDto;
import com.cjl.common.dtos.ResponseResult;
import com.cjl.damin.service.AdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/19 12:22
 */

@Api(value = "AdminController", description = "管理员controller")
@RestController
@RequestMapping("/api/admin")
public class AdminController {

    @Autowired
    AdminService adminService;

    @ApiOperation("完善用户信息")
    @PostMapping("modifyAdminInfo")
    public ResponseResult modifyAdminInfo(@RequestBody AdminInfoDto adminInfoDto) {
        return adminService.modifyAdminInfo(adminInfoDto);
    }
}
